<template>
	<view>
		<view class="content" @click="hideDrawer">
			<tabbar :pagePath="'pages/index/index'"></tabbar>
			<zl-down :isDownShow="isDownShow" @choseBtn="choseBtn"></zl-down>
		</view>
		
	</view>
</template>

<script>
	import zlDown from '../../components/zlDown/zlDown.vue'
	export default {
		components: {
			zlDown
		},
		data() {
			return {
				title: '我是首页',
				isDownShow: false,
			}
		},
		onLoad() {
			uni.hideTabBar();
		},
		methods: {
			onNavigationBarButtonTap() {
				this.isDownShow = !this.isDownShow
			},
			hideDrawer() { 
				if (this.isDownShow == true)
					this.isDownShow = false
			},
			choseBtn(val) {
				this.isDownShow = true
				uni.showToast({
					title:val.name
				})
			}
		}
	}
</script>

<style lang="scss">
	.content {
		height: 100vh;
	}
</style>
